﻿/**
 * Licensed to Open-Ones Group under one or more contributor license
 * agreements. See the NOTICE file distributed with this work
 * for additional information regarding copyright ownership.
 * Open-Ones Group licenses this file to you under the Apache License,
 * Version 2.0 (the "License"); you may not use this file
 * except in compliance with the License. You may obtain a
 * copy of the License at:
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on
 * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied. See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
namespace IPresenter
{
    using System;
    using System.Collections.Generic;
    using System.Text;

    /// <summary>
    /// This class is used to store information of file open office
    /// </summary>
    public class OpenOffice
    {
        /// <summary>
        /// Handle of file open office
        /// </summary>
        private int intHandleWindow;

        /// <summary>
        /// Name of file open office is running
        /// </summary>
        private string nameFile;

        /// <summary>
        /// Initializes a new instance of the OpenOffice class
        /// </summary>
        public OpenOffice()
        {
            this.intHandleWindow = 0;
            this.nameFile = string.Empty;
        }

        /// <summary>
        /// Initializes a new instance of the OpenOffice class
        /// Contructor is used to init values with parameters was provided
        /// </summary>
        /// <param name="handlePresentation">Handle của file openoffice</param>
        /// <param name="namePresentation">Tên của file openoffice</param>
        public OpenOffice(int handlePresentation, string namePresentation)
        {
            this.Handle = handlePresentation;
            this.NameFile = namePresentation;
        }

        /// <summary>
        /// Gets or sets name of file open office
        /// </summary>
        public string NameFile
        {
            get { return this.nameFile; }
            set { this.nameFile = value; }
        }

        /// <summary>
        /// Gets or sets handle of open office
        /// </summary>
        public int Handle
        {
            get { return this.intHandleWindow; }
            set { this.intHandleWindow = value; }
        }
    }
}
